// 导航栏修复样式
// 确保hamburger图标和头像正确显示

// Hamburger图标修复
.navbar {
  .hamburger-container {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(24, 144, 255, 0.1) !important;
    padding: 0 !important;
    overflow: visible !important;

    &:hover {
      background: rgba(24, 144, 255, 0.12) !important;
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
    }
    
    .hamburger-wrapper {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 100% !important;
      height: 100% !important;
    }
    
    .hamburger {
      width: 36px !important;
      height: 36px !important;
      display: block !important;
      color: #595959 !important;
      fill: currentColor !important;
      transition: all 0.3s ease;
      cursor: pointer;
    }
    
    .hamburger:hover {
      color: #1890ff !important;
      transform: scale(1.1);
    }
    
    .hamburger.is-active {
      transform: rotate(180deg);
      color: #1890ff !important;
    }
    
    .hamburger.is-active:hover {
      transform: rotate(180deg) scale(1.1);
    }
  }

  // 头像容器修复
  .avatar-container {
    width: auto !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 8px !important;
    margin-right: 0 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(24, 144, 255, 0.1) !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    .avatar-wrapper {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      width: 100% !important;
      height: 100% !important;
      overflow: visible !important;

      .user-avatar {
        cursor: pointer;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        border: 2px solid rgba(24, 144, 255, 0.2) !important;
        transition: all 0.3s ease;
        object-fit: cover !important;
        display: block !important;
        flex-shrink: 0 !important;
        max-width: none !important;
        max-height: none !important;
        
        &:hover {
          border-color: #1890ff !important;
          transform: scale(1.05);
        }
      }

      .el-icon-caret-bottom {
        cursor: pointer;
        color: #595959 !important;
        transition: all 0.3s ease;
        font-size: 12px !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
      }
    }

    &:hover {
      background: rgba(24, 144, 255, 0.12) !important;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
    }
  }
}

// 全局图片样式修复
img.user-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0 !important;
  max-width: none !important;
  max-height: none !important;
}

// Hamburger图标全局修复
.hamburger {
  width: 36px !important;
  height: 36px !important;
  display: block !important;
  color: #595959 !important;
  fill: currentColor !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hamburger:hover {
  color: #1890ff !important;
  transform: scale(1.1);
}

.hamburger.is-active {
  transform: rotate(180deg);
  color: #1890ff !important;
}

.hamburger.is-active:hover {
  transform: rotate(180deg) scale(1.1);
}

// 确保SVG图标正确显示
svg.hamburger {
  width: 36px !important;
  height: 36px !important;
  display: block !important;
  color: #595959 !important;
  fill: currentColor !important;
}

// 更具体的样式规则
.navbar .hamburger-container .hamburger-wrapper .hamburger {
  width: 36px !important;
  height: 36px !important;
  display: block !important;
  color: #595959 !important;
  fill: currentColor !important;
}

.navbar .avatar-container .avatar-wrapper .user-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0 !important;
  max-width: none !important;
  max-height: none !important;
}

// 确保下拉菜单正确显示
.el-dropdown-menu {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(24, 144, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  
  .el-dropdown-item {
    transition: all 0.3s ease !important;
    
    &:hover {
      background: rgba(24, 144, 255, 0.08) !important;
      color: #1890ff !important;
    }
  }
}

// 最终修复 - 确保所有可能的冲突都被覆盖
#app .navbar .hamburger-container .hamburger-wrapper .hamburger {
  width: 36px !important;
  height: 36px !important;
  display: block !important;
  color: #595959 !important;
  fill: currentColor !important;
}

#app .navbar .avatar-container .avatar-wrapper .user-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0 !important;
  max-width: none !important;
  max-height: none !important;
}

// 确保SVG元素正确显示
#app .navbar .hamburger-container svg {
  width: 36px !important;
  height: 36px !important;
  display: block !important;
  color: #595959 !important;
  fill: currentColor !important;
} 